<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link th:href="@{css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{css/jquery.dataTables.css}" rel="stylesheet">
    <title>newGoods</title>
</head>
<body>
<form action="addGoods" method="post" th:object="${form}" class="form-horizontal" >
    <legend>添加货物</legend>
    <div class="container">
        <div class="form-group">
            <label class="col-sm-2 control-label">运单号</label>
            <div class="col-sm-4">
                <input class="form-control" th:field="${form.billno}" type="text"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">长</label>
            <div class="col-sm-4">
                <input class="radio-button" th:field="${form.chang}" type="radio" value="1"/>123
                <input class="radio-button" th:field="${form.chang}" type="radio" value="2"/>456
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">收货人电话</label>
            <div class="col-sm-4">
                <input class="checkbox-inline" name="phone" type="checkbox" value="1" th:field="${form.phone}"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">发货时间</label>
            <div class="col-sm-4">
                <input class="date-picker" th:value="${form.createTime}" type="datetime-local" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">货物类别</label>
            <div class="col-sm-4">
                <select class="form-control" th:field="${form.type}" type="text">
                    <option value="1">化工品</option>
                    <option value="2">木材</option>
                    <option value="3">钢材</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label" >收货人地址</label>
            <div class="col-sm-4">
                <textarea class="form-control" th:field="${form.address}"></textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="text-center">
                <button type="submit" class="btn btn-primary">提交</button>
                <button onclick="location.href='goods'" class="btn btn-danger" type="button">取消</button>
            </div>
        </div>
    </div>
</form>
</body>
</html>